<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/jquery-3.6.0.min.js"></script>
	</head>
	<body>
		用户名：<input type="text" id="nameInput" />
		密码：<input type="password" id="pwdInput" />
		手机号：<input type="text" id="telInput" />
		<button onclick="register()">注册</button>
	</body>
	
	<script>
		function register(){
			var name = $("#nameInput").val();
			var pwd = $("#pwdInput").val();
			var tel = $("#telInput").val();

			$.ajax({
				type:"POST",
				url:"/base-boot/login/register",
				dataType:"json",
				data:{
					userName:name,
					pwd:pwd,
					tel:tel,
					email:"sdfas"
				},
				success:function(s){
					console.info("注册成功"+s);
				},
				error:function(ss){
					console.info("注册失败"+ss)
				}
			})
			
			
		}
	</script>
	
	
</html>
